home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / streamnop / read me about streamnop next >
Encoding:
Text File  |  2000-06-23  |  2.2 KB  |  61 lines

  1. Read Me About StreamNOP
  2.  
  3. 1.0b2
  4.  
  5. StreamNOP is a sample STREAMS module that was designed for you to use as a template when creating STREAMS modules.  The template demonstrates the following features:
  6.  
  7. 1. An empty STREAMS module that does nothing to messages that pass through it.
  8.  
  9. 2. Set up for using "OTDebug.h".
  10.  
  11. 3. Set up for Instrumentation using the Instrumentation SDK.
  12.  
  13. 4. My standard technique for getting per-stream data.
  14.  
  15. 5. All my standard asserts.
  16.  
  17. StreamNOP is largely derived from the TPIFile source, but it is simplified to the point where it makes a useful template.
  18.  
  19. Packing List
  20.  
  21. The StreamNOP package contains the following items:
  22.  
  23. • Read Me About StreamNOP — This document.
  24.  
  25. • StreamNOP.µ — A PPC project file to build the “StreamNOP” module.
  26. • StreamNOP — A compiled version of the StreamNOP.µ project.
  27.  
  28. • StreamNOP.c — Source to the StreamNOP module.
  29.  
  30. Installation and Execution
  31.  
  32. To test the sample, do the following:
  33.  
  34. 1. Drag the “StreamNOP” module into your Extensions folder.
  35.  
  36. 2. You can now open a stream using the following code snippet and StreamNOP will be inserted in the stream:
  37.  
  38.   ep = OTOpenEndpoint(OTCreateConfiguration("StreamNOP,tcp"), …);
  39.  
  40. Building the Sample
  41.  
  42. This sample was built using the Metrowerks CodeWarrior Pro 2 environment and the Open Transport 1.3 SDK interfaces and libraries.
  43.  
  44. To rebuild the sample, first open the project and change the “LatestInterfaces” and “LatestLibraries” access paths to point to the interfaces and libraries from the OT 1.3 (or newer) SDK.  Then choose Make from the Project menu to build the StreamNOP module.
  45.  
  46. Credits and Version History
  47.  
  48. If you find any problems with this sample, mail <DTS@apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  49.  
  50. Version 1.0b1 (Aug 1997) is the first release.
  51.  
  52. Version 1.0b2 (Jul 1998) is an update to the CodeWarrior Pro 2 environment with OT 1.3 interfaces and libraries.  This was prompted by the problems CodeWarrior has converting projects with “.exp” files.  I now use #pragma export instead of a “.exp” file.  There are no code changes.
  53.  
  54. Share and Enjoy
  55.  
  56. Quinn “The Eskimo!”
  57. Apple Developer Technical Support
  58. Networking, Communications, Hardware
  59.  
  60. 13 Jul 1997
  61.